package com.plwf.lake.mapper;

import com.plwf.lake.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    public List<Student> select(Map<String,Object> map);
    public boolean insert(Student bean);
    public boolean delete(Integer stuId);
    public boolean update(Student bean);
    public Student selectOne(Integer stuId);
    public boolean enable(Student bean);
    public List<Student> selectAll();
    public List<Student> selectReverse(Map<String,Object> map);
    public List<Student> selectAllRes();
    public Student login(Student bean);
    public Integer maxId();
    public Student selectPeo(@Param("stuId") Integer stuId,@Param("classId") Integer classId);
    public List<Student> selPeriod(Map<String,Object> map);
    public Student selSess(Map<String,Object> map);
    //查询一个人的预约信息
    public Student selectReverse2(Integer id);
}
